<section id="content">
    <section id="posts">
<?php if (count($this->posts) < 1) : ?>
        <article>
            <p>Посты закончились</p>
        </article>
<?php else : foreach ($this->posts as $post) : ?>
        <article>
            <header>
                <h2><a href="<?php echo $this->url(array('controller' => 'index', 'action' => 'post', 'id' => $post['id'])) ?>"><?php echo $this->escape($post['title']) ?></a></h2>
            </header>
            <?php echo $post['blog_post'] ?>
            <p><?php echo $this->escape($post['created_at']) ?></p>
        </article>
<?php endforeach; endif ?>
    </section> <!-- posts -->
</section> <!-- content -->